package com.youtui.common.service.base.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.youtui.common.service.base.BaseService;
import com.youtui.common.util.HttpClientUtil;
import com.youtui.common.util.JedisUtil;

public class BaseServiceImpl implements BaseService {

    /** 日志打印 */
    protected final Logger logger = LoggerFactory.getLogger(getClass());
 

    @Autowired
    protected HttpClientUtil httpClientUtil;

    @Autowired
    protected JedisUtil jedisUtil;
 

    /** logger info方法 */
    public void loggerInfo(String msg) {
        if (logger.isInfoEnabled()) {
            logger.info(msg);
        }
    }

    /** logger warn方法 */
    public void loggerWarn(String msg) {
        if (logger.isWarnEnabled()) {
            logger.warn(msg);
        }
    }

    /** logger error方法 */
    public void loggerError(String msg) {
        logger.error(msg);
    }


}
